import axios from '@/libs/api.request'

export const getZooChildren = (params) => {
  return axios.request({
    url: '/zoo/children',
    params,
    method: 'get'
  })
}


export const addNodeApi = (data) => {
  return axios.request({
    url: '/zoo/addNode',
    data,
    method: 'POST'
  })
}


export const editNodeApi = (data) => {
  return axios.request({
    url: '/zoo/editNode',
    data,
    method: 'POST'
  })
}


export const deleteNodeApi = (data) => {
  return axios.request({
    url: '/zoo/deleteNode',
    data,
    method: 'DELETE'
  })
}
